<!DOCTYPE html>
<html lang="en">
  <head>
    <title>css阻塞,js阻塞</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <style>
      h1 {
        color: red !important;
      }
    </style>
    <script>
      // function h() {
      //   console.log(document.querySelectorAll('h1'))
      // }
      // setTimeout(h, 10000)
      let arr=[]
      for (let i = 0; i < 100000000; i++) {
        arr.push(i)
        arr.splice(i%3,i%7,i%5)
      }
      console.log('🚀🚀🚀wimi======>>>arr',arr)
    </script>
    <link
      href="https://cdn.bootcss.com/bootstrap/4.0.0-alpha.6/css/bootstrap.css"
      rel="stylesheet"
    />
  </head>
  <body>
    <h1>这是红色的</h1>
    <ul>
      <li>css不会阻塞dom的解析，会阻塞dom的渲染</li>
      <li>js会阻塞dom的解析渲染</li>
    </ul>
  </body>
</html>
